<div class="header">
  <back-Btn></back-Btn> 签到
</div>
<div class="container signpage">
  <div class="list">
    <div class="sign-map">
      <baidu-map options="signIndex.mapOptions" on-map-loaded="signIndex.finishmap(map,previousMarkers)"
        ak="{{signIndex.ak}}" offline="signIndex.offlineOpts" style="width:100%;height:100%;display:block"></baidu-map>
      <p class="sign-tip" ng-show="signIndex.param.address" ng-click="signIndex.chooseposition()">选择附近位置</p>
      <p class="sign-relocation" ng-click="signIndex.getPosition()">重新定位</p>
    </div>
    <div class="sign-info">
      <div class="list-item lh40">
        <div class="fs16 flex">
          <p class="icon-location2"></p>
          <p class="location-address celled"> {{signIndex.param.address||signIndex.positiontip}}</p>
        </div>
      </div>
      <div class="list-item lh40">
        <div class="fs16 flex">
          <p class="icon-date2"></p>
          <p class="sign-info-message"> {{signIndex.signDate|dateFmt:"yyyy年MM月dd日"}}</p>
        </div>
      </div>
    </div>
    <div class="sign-relmodule">
      <div class="list-item lh40 celled flex">
        <div class="w25 c8">关联模块</div>
        <div class="w75 sign-select">
          <select ng-model="signIndex.param.relatedModule"
            ng-options="item.value as item.key for item in signIndex.relList" ng-change="signIndex.modulechange()">
            <option value="">请选择</option>
          </select>
        </div>
      </div>
      <div class="list-item lh40 flex">
        <div class="w25 c8">模块编号</div>
        <div class="w75 sign-select" ng-click="signIndex.chooseinfo()">
          <p class="tip te">{{signIndex.param.moduleNo||"点击选择"}}</p>
        </div>
      </div>
    </div>
    <div class="list-item flex lh40 mt10">
      <div class="w25 c8">备注</div>
      <div class="w75"><input ng-model="signIndex.param.remark" placeholder="填写备注" /></div>
    </div>
    <!-- 附件 -->
    <div class="file-upload f_sk" file-upload file-data="signIndex.param.attachment" holder="拍照" type="2">
    </div>
  </div>
  <div class="sign-submit tc">
    <div class="sign-btn" ng-click="signIndex.sign()">
      签到
      <p>{{signIndex.signDate|dateFmt:"hh:mm"}}</p>
    </div>
    <p class="mt10" ng-show="signIndex.curData.signInCount">今日已完成签到
      <span class="c-blue fs16" ng-click="signIndex.goFootmark()">{{signIndex.curData.signInCount}}</span>次</p>
    <p class="mt10" ng-show="!signIndex.curData.signInCount">今日你还未签到</p>
  </div>
</div>
<div class="footer fs12 footer-menu flex tc footer-withhr">
  <div class="sign active">签到</div>
  <div class="footmark" ng-click="signIndex.goFootmark()">足迹</div>
  <div class="hr"></div>
</div>